<template>
  <div class="IndustryThinkTank">

    <section class="content-section">
      <div class="container">
        <div class="grid lg:grid-cols-3 gap-8">
          <div v-for="item in items" :key="item.hospital">
            <div class="card">
              <div class="card-image">
                <img :src="item.imageSrc" alt="Card Image" class="image">
              </div>
              <div class="card-content">
                <div class="location">
                  <span class="hospital">{{ $t(`IndustryThinkTank.${item.hospital}`) }}</span>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>
</template>

<script>
export default {
  name: 'IndustryThinkTank',
  data() {
    return {
      items: [
        {
          hospital: 'jianqiao',
          imageSrc: require('@/assets/IndustryThinkTank/Tank1.png')
          },
          {
          hospital: 'lundun',
          imageSrc: require('@/assets/IndustryThinkTank/Tank2.png')
        },
        {
          hospital: 'HKUniversity',
          imageSrc: require('@/assets/IndustryThinkTank/Tank3.png')
        },
        {
          hospital: 'HKScienceUniversity',
          imageSrc: require('@/assets/IndustryThinkTank/Tank4.png')
        },
        {
          hospital: 'HKChineseUniversity',
          imageSrc: require('@/assets/IndustryThinkTank/Tank5.png')
        },
        {
          hospital: 'ZhongShanUniversity',
          imageSrc: require('@/assets/IndustryThinkTank/Tank6.png')
        },
        {
          hospital: 'HuaGongUniversity',
          imageSrc: require('@/assets/IndustryThinkTank/Tank7.png')
        },
        {
          hospital: 'NanFangUniversity',
          imageSrc: require('@/assets/IndustryThinkTank/Tank8.png')
        },
        {
          hospital: 'ZhongYiYaoUniversity',
          imageSrc: require('@/assets/IndustryThinkTank/Tank9.png')
        },
        {
          hospital: 'ZhongShanNo1',
          imageSrc: require('@/assets/IndustryThinkTank/Tank13.png')
        },
        {
          hospital: 'NanFangHospital',
          imageSrc: require('@/assets/IndustryThinkTank/Tank15.png')
        },
        {
          hospital: 'CancerCenter',
          imageSrc: require('@/assets/IndustryThinkTank/Tank12.png')
        },
        {
          hospital: 'GuangDongHospital',
          imageSrc: require('@/assets/IndustryThinkTank/Tank16.png')
        },
        {
          hospital: 'GuangYiKeNo1Hospital',
          imageSrc: require('@/assets/IndustryThinkTank/Tank17.png')
        },
        {
          hospital: 'ZhongShanNo3',
          imageSrc: require('@/assets/IndustryThinkTank/Tank19.png')
        },
        {
          hospital: 'SunYiXian',
          imageSrc: require('@/assets/IndustryThinkTank/Tank11.png')
        },
        {
          hospital: 'WomenAndChildren',
          imageSrc: require('@/assets/IndustryThinkTank/Tank18.png')
        },
        {
          hospital: 'EyesCenter',
          imageSrc: require('@/assets/IndustryThinkTank/Tank10.png')
        },
        {
          hospital: 'ZhuJiangHospital',
          imageSrc: require('@/assets/IndustryThinkTank/Tank14.png')
        },
      ]
    };
  }
};
</script>

<style scoped>
.IndustryThinkTank {
  font-family: Arial, sans-serif;
}


.content-section {
  width: 100%;
  padding: 3% 8% 0 10%; /* 保持上下内边距，左右内边距增加 */
}

.container {
  max-width: 100vw; /* 占满父元素宽度 */
  padding: 0;
  margin: 0 auto; /* 保持居中 */
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 固定三列 */
  gap: 2%; /* 网格间距 */
}

.card {
  display: flex;
  flex-direction: column;
  background-color: #f3f4f6;
  color: #1f2937;
  width: 90%;
  height: 90%;
  top: 2%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-image {
  height: 80%; /* 保持图片部分的高度 */
}

.card-image .image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持图片覆盖容器的上半部分 */
}

.card-content {
  padding: 1rem; /* 保持内边距 */
}

.location {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 1vw;
}

.hospital {
  font-weight: bold;
  font-size: 1vw;
}

@media (max-width: 768px) {
  .grid {
    gap: 1.5rem; /* 调整小屏幕上的网格间距 */
  }
}

@media (max-width: 480px) {
  .location {
    font-size: 10px; /* 调整字体大小 */
  }

  .hospital {
    font-size: 14px; /* 调整字体大小 */
  }
}
</style>
